package com.jyh;

import com.jyh.service.BatchBuyService;
import com.jyh.service.BookShopService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/14 17:55
 */
public class Test02 {
    public static void main(String[] args) {
        ArrayList<String> isbns = new ArrayList();
        isbns.add("1001");
        isbns.add("1002");
        ApplicationContext app = new ClassPathXmlApplicationContext("spring.xml");
        BatchBuyService batchBuyService = app.getBean(BatchBuyService.class);
            batchBuyService.buy(isbns,"栗毅");
    }
}
